package io.kiki.sba.registry.store.jdbc.domain;

import io.kiki.sba.registry.store.jdbc.version.config.ConfigEntry;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class ProvideDataDomain implements ConfigEntry {

    /**
     * primary dataKey
     */
    private long id;

    /**
     * local data center
     */
    private String dataCenter;

    /**
     * data dataKey
     */
    private String dataKey;

    /**
     * data dataValue
     */
    private String dataValue;

    /**
     * create time
     */
    private Date gmtCreate;

    /**
     * last update time
     */
    private Date gmtModified;

    /**
     * data version
     */
    private long dataVersion;

    public ProvideDataDomain(String dataCenter, String dataKey, String dataValue, long dataVersion) {
        this.dataCenter = dataCenter;
        this.dataKey = dataKey;
        this.dataValue = dataValue;
        this.dataVersion = dataVersion;
    }


}
